package com.jmp.base.dto;

import lombok.Builder;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author cjr
 */
@Data
@Builder
public class OrderDetailVo {
    private Integer orderId;
    private String orderNo;
    private String tradeNo;
    private BigDecimal orderPrice;
    private Integer userId;
    private Integer companyId;
    private Integer orderState;
    private String orderRemark;
    private Long orderCreateTime;

    private Integer payType;
    private BigDecimal payPrice;
    private Long orderPayTime;

    private Integer deliveryType;
    private String deliveryCompany;
    private String deliveryNo;

    private Integer refundState;
    private String refundRemark;

    private Integer addressId;
    private String addressName;
    private String addressPhone;
    private String addressDetail;

    private List<Goods> goodsList;

    /**
     * 支付剩余时间，单位秒
     */
    private Long payTimeLeft;

    @Data
    @Builder
    public static class Goods {
        private Integer goodsId;
        private String goodsName;
        private String goodsPhoto;
        private String skuName;
        private Integer skuNum;
        private BigDecimal price;

        private Integer cardId;
    }
}
